exports.addMember = function (req, res) {

  var bodyParams = req.routeInfo.bodyParams;

  //任务流创建
  async.waterfall([

      //新增成员
      function(cb){

          db.add({

              "m_name"        : bodyParams.m_name,
              "m_profession"  : bodyParams.m_profession,
              "m_uid"         : "1",
              "m_tid"         : bodyParams.m_tid,
              "m_photo"       : bodyParams.m_photo,
              "m_create_time" : common.nowTime()

          },"dkp_member",function(rs){

              if(rs == 'ERROR'){
                  return RES.errorResponse(res, false, "抱歉，成员新增失败");
              }else{
                  cb();
              }

          })
      }

  ], function (err, result) {

      //返回最终拼接结果
      RES.successResponse(res);

  });


}